import request from '@/utils/request'

// 查询租金收入明细列表
export function listDetails(query) {
    return request({
        url: '/CwRentalIncomeDetails/list',
        method: 'post',
        data: query
    })
}

// 查询租金收入明细列dTO
export function querylist(query) {
    return request({
        url: '/CwRentalIncomeDetails/querylist',
        method: 'post',
        data: query
    })
}

// 查询租金收入明细详细
export function getDetails(id) {
    return request({
        url: '/CwRentalIncomeDetails/' + id,
        method: 'get'
    })
}

// 新增租金收入明细
export function addDetails(data) {
    return request({
        url: '/CwRentalIncomeDetails/add',
        method: 'post',
        data: data
    })
}

// 修改租金收入明细
export function updateDetails(data) {
    return request({
        url: '/CwRentalIncomeDetails/edit',
        method: 'post',
        data: data
    })
}

// 删除租金收入明细
export function delDetails(id) {
    return request({
        url: '/CwRentalIncomeDetails/' + id,
        method: 'delete'
    })
}
